package com.jishuo.nontax.bfc.dao;


import com.jishuo.nontax.bean.vo.PreerrVO;
import com.jishuo.nontax.bean.vo.PrereSultsDetailVO;
import com.jishuo.nontax.bean.vo.PreresultsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @auther dinggaofei
 * @Date 2022/12/30 9:57
 */
@Mapper
public interface PreerrMapper {

    int deleteBankIdPayBank(PreerrVO preerrVO);

    int savePreerr(PreerrVO preerrVO);

    int deletePreeDetailBankId(PreerrVO preerrVO);

    int insertPreerrdetail(List<PreerrVO> preerrs);

    /** 财政对账结果列表 */
    List<PreerrVO> findPreerrPage(PreerrVO preerrVO);

    int deletePrereSults(@Param("bankid")long bankid, @Param("paybankdt")String paybankdt);

    /**
     * 是否预审成功
     * @param bankid 账户id
     * @param paybankdt 日期
     * @return
     */
    int preCheckSuc(@Param("bankid")long bankid, @Param("paybankdt")String paybankdt);

    /** 新增预审结果 */
    int insertPrereSults(PreresultsVO preresultsVO);

    int insertPrereSultsDetail(List<PrereSultsDetailVO> list);

    /** 预审结果查询 */
    List<PreresultsVO> findPrereSultsPage(PreresultsVO preresultsVO);

    List<PreerrVO> findBankCheckDetail(PreresultsVO preresultsVO);

    int deleteResultDetail(@Param("bankid")long bankid, @Param("paybankdt")String paybankdt);

}
